﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace InventoryManagementServer
{
    public class UploadPurchaseOrders : HttpHandlerBase
    {
        public override void ProcessRequest(User user, HttpRequest request, string requestBody, HttpResponse response, ref string responseBody)
        {
            var orders = XmlSerializer.Deserialize<Order[]>(requestBody);

            DataStore.AddPurchaseOrders(user, orders);
        }
    }
}